package com.jiyinit.web.core.business.enums;

/**
 * Created by user1 on 2019/2/28.
 */
public enum UserSalaryEnum {

    CELL1("id", "961024"),
    CELL2("userId", "编号\n"),
    CELL3("userName", "姓名\n"),
    CELL4("orgName", "部门\n"),
    CELL5("userCertificateNo", "身份证号码\n"),
    CELL6("salaryMonth", "工资月份\n"),
    CELL7("entryDate", "入职日期\n"),
    CELL8("positionSalary", "岗位工资\n"),
    CELL9("meritSalary", "绩效工资\n"),
    CELL10("positionAllowance", "岗位津贴\n"),
    CELL11("awardSalary", "奖励工资\n"),
    CELL12("agreedSalary", "约定工资\n"),
    CELL13("computerAllowance", "电脑或话费补助\n"),
    CELL14("mealAllowance", "加班等餐费补助\n"),
    CELL15("recommendAward", "推荐奖/奖金\n"),
    CELL16("evectionAllowance", "住房补助/出差补助\n"),
    CELL17("reissueSalary", "补发工资\n"),
    CELL18("overtimeAllowance", "迟到早退扣除额\n"),
    CELL19("leaveDeduct", "事病假\n"),
    CELL20("sunShine", "阳光普照\n"),
    CELL21("otherAllowance", "其它\n"),
    CELL22("totalSalary", "应发工资\n"),
    CELL23("companyTotalInsuranceFund", "五险一金(单位)\n"),
    CELL24("companyEndowment", "单位养老保险\n"),
    CELL25("companyMedicalInsurance", "单位医疗保险\n"),
    CELL26("companyUnemployedInsurance", "单位失业保险\n"),
    CELL27("companyWoundInsurance", "单位工伤保险\n"),
    CELL28("companyMaternityInsurance", "单位生育保险\n"),
    CELL29("companyAccumulationFund", "单位公积金\n"),
    CELL30("personalTotalInsuranceFund", "三险一金（个人）\n"),
    CELL31("personalEndowment", "个人养老保险\n"),
    CELL32("personalMedicalInsurance", "个人医疗保险\n"),
    CELL33("personalUnemployedInsurance", "个人失业保险\n"),
    CELL34("personalAccumulationFund", "个人公积金\n"),
    CELL35("paidAward", "已付奖金或福利等\n"),
    CELL36("taxableAmount", "应税金额\n"),
    CELL37("personalTax", "个人税\n"),
    CELL38("actualPaidSalary", "实发工资\n"),
    CELL39("isDelete", "删除标记 0否 1是"),
    CELL40("createId", "创建人"),
    CELL41("createTime", "创建时间"),
    CELL42("lastModifyId", "最后修改人id"),
    CELL43("lastModifyTime", "最后修改时间"),
    CELL44("attr1", "扩展字段1"),
    CELL45("attr2", "扩展字段2"),
    CELL46("attr3", "扩展字段3"),
    CELL47("personalMajorDiseaseRisk", "重大疾病险（个人）\n"),
    CELL48("companyMajorDiseaseRisk", "重大疾病险（单位）\n"),
    CELL49("specialDeductionOfPersonalIncomeTax", "个税专项扣除\n"),
    CELL50("overtimePay", "加班费\n"),
    CELL51("deductionAmount", "应扣合计\n"),
    ;




    /**
     * 属性名称
     */
    private String fieldName;

    /**
     * 中文名称
     */
    private String cnName;

    UserSalaryEnum(String fieldName, String cnName){
        this.fieldName = fieldName;
        this.cnName = cnName;
    }

    public static String getFieldName(String cnName){
        UserSalaryEnum[] values = UserSalaryEnum.values();
        for (UserSalaryEnum obj: values) {
            String cnName1 = obj.getCnName();
            if(cnName1.trim().equals(cnName.trim())){
                return obj.getFieldName();
            }
        }
        return null;
    }

    public String getFieldName() {
        return fieldName;
    }

    public String getCnName() {
        return cnName;
    }
}
